package com.ruoyi.system.domain;

import liquibase.pro.packaged.I;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 审批超时对象 approve_timeout_statistic
 *
 * @author ruoyi
 * @date 2024-04-12
 */
public class ApproveTimeoutStatistic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 申请人id */
    @Excel(name = "申请人id")
    private Long userId;

    /** 申请人姓名 */
    @Excel(name = "申请人姓名")
    private String userName;

    /** 流程id */
    @Excel(name = "流程id")
    private String templateId;

    /** 流程名称 */
    @Excel(name = "流程名称")
    private String templateName;

    /** 超时累计 */
    @Excel(name = "超时累计")
    private Long timeoutTotal;

    /** 超时次数 */
    @Excel(name = "超时次数")
    private Integer timeoutMum;

    /**
     *  分页页数
     */
    private Integer pageNum;

    /**
     *  分页条数
     */
    private Integer pageSize;

    /** 流程实例id */
    private String processInstanceId;

    /** 流程实例id */
    private List<String> processInstanceIdList;

    /** 单次超时时间 */
    private Long timeOutTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public void setTimeoutTotal(Long timeoutTotal) {
        this.timeoutTotal = timeoutTotal;
    }

    public Long getTimeoutTotal()
    {
        return timeoutTotal;
    }
    public void setTimeoutMum(Integer timeoutMum)
    {
        this.timeoutMum = timeoutMum;
    }

    public Integer getTimeoutMum()
    {
        return timeoutMum;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public List<String> getProcessInstanceIdList() {
        return processInstanceIdList;
    }

    public void setProcessInstanceIdList(List<String> processInstanceIdList) {
        this.processInstanceIdList = processInstanceIdList;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public Long getTimeOutTime() {
        return timeOutTime;
    }

    public void setTimeOutTime(Long timeOutTime) {
        this.timeOutTime = timeOutTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
                .append("templateId", getTemplateId())
                .append("templateName", getTemplateName())
            .append("timeoutTotal", getTimeoutTotal())
            .append("timeoutMum", getTimeoutMum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
